import os
from concurrent.futures import ThreadPoolExecutor
from lib.clientport_update import update

if __name__ == '__main__':
    path = os.path.dirname(os.path.abspath(__file__))
    with ThreadPoolExecutor(250) as pool:
        for i in range(1, 255):
            ip = f"192.168.9.{i}"
            pool.submit(lambda cxp: update(*cxp), (ip, path))
